<%-- Error Messages --%>
<c:if test="${not empty errors}">
    <div id="errorMessages" class="warningMessages">
        <div class="error">
            <c:forEach var="error" items="${errors}">
                <c:out value="${error}"/><br />
            </c:forEach>
        </div>
    </div>
    <c:remove var="errors"/>
</c:if>

<%-- Success Messages --%>
<c:if test="${not empty successMessages}">
    <div id="successMessages">
        <div class="success">
            <c:forEach var="msg" items="${successMessages}">
                <c:out value="${msg}"/><br />
            </c:forEach>
        </div>
    </div>
    <c:remove var="successMessages" scope="session"/>
</c:if>
